import request from '~/core/request';
import {baseApiUrl} from './config';

function grabGift(){
	return request.post('grabGift');
}
function entrance(params){
	return request.post('activity/entrance.do', params).then((data) => {
		request.configs.headers = {secretCode: data.secretCode};
		return data;
	});
}
function saveAdress(data) {
	return request.post(`prizedraw/saveReceiverInfo.do`, data);
}
function eCardInfo(id) {
	return request.post(`prizedraw/getRechargeCards.do`, id);
}

export {
	grabGift,
	entrance,
	saveAdress,
	eCardInfo
};
